home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / mac / ch09 / 09fig05.wrl < prev    next >
Text File  |  1996-09-23  |  1KB  |  61 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright 1997 By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Group {
  6.     children [
  7.         Group {
  8.             children [
  9.                 DEF Block1 Transform {
  10.                     children DEF BlockShape Shape {
  11.                         appearance Appearance {
  12.                             material Material { }
  13.                         }
  14.                         geometry Box { }
  15.                     }
  16.                 },
  17.                 DEF Block1Sensor PlaneSensor {
  18.                     offset 0.0 0.0 0.0
  19.                 }
  20.             ]
  21.         },
  22.         Group {
  23.             children [
  24.                 DEF Block2 Transform {
  25.                     translation 2.5 0.0 0.0
  26.                     children USE BlockShape
  27.                 },
  28.                 DEF Block2Sensor PlaneSensor {
  29.                     offset 2.5 0.0 0.0
  30.                 }
  31.             ]
  32.         },
  33.         Group {
  34.             children [
  35.                 DEF Block3 Transform {
  36.                     translation 1.5 2.0 0.0
  37.                     children USE BlockShape
  38.                 },
  39.                 DEF Block3Sensor PlaneSensor {
  40.                     offset 1.5 2.0 0.0
  41.                 }
  42.             ]
  43.         },
  44.         Group {
  45.             children [
  46.                 DEF Block4 Transform {
  47.                     translation 0.75 4.0 0.0
  48.                     children USE BlockShape
  49.                 },
  50.                 DEF Block4Sensor PlaneSensor {
  51.                     offset 0.75 4.0 0.0
  52.                 }
  53.             ]
  54.         }
  55.     ]
  56. }
  57. ROUTE Block1Sensor.translation_changed TO Block1.set_translation
  58. ROUTE Block2Sensor.translation_changed TO Block2.set_translation
  59. ROUTE Block3Sensor.translation_changed TO Block3.set_translation
  60. ROUTE Block4Sensor.translation_changed TO Block4.set_translation
  61.